package com.yunhe.common.i18n;

/**
 * @author duanxiaoyong
 */
public class LanguageHolder {

    public static final ThreadLocal<String> LANGUAGE_HOLDER = new ThreadLocal<>();

    public static void setLanguage(String language){
        LANGUAGE_HOLDER.set(language);
    }

    public static String getLanguage(){
        return LANGUAGE_HOLDER.get();
    }

    public static void remove(){
        LANGUAGE_HOLDER.remove();
    }

}
